package com.dream.keigezhushou.Activity.acty.personal;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import com.dream.keigezhushou.Activity.activity.BaseActivity;
import com.dream.keigezhushou.Activity.view.NestedScrollViewBottom;
import com.dream.keigezhushou.R;

import butterknife.BindView;
import butterknife.ButterKnife;

public class OrderDetailsActivity extends BaseActivity implements View.OnClickListener{

    @BindView(R.id.iv_return)
    ImageView ivReturn;
    @BindView(R.id.tv_title)
    TextView tvTitle;
    @BindView(R.id.btn_apply_refund)
    Button btnApplyRefund;
    @BindView(R.id.tv_ticket_num)
    TextView tvTicketNum;
    @BindView(R.id.tv_state_kind)
    TextView tvStateKind;
    @BindView(R.id.iv_call)
    ImageView ivCall;
    @BindView(R.id.scroll_bottom)
    NestedScrollViewBottom scrollBottom;
    private Intent intent;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_order_details);
        ButterKnife.bind(this);

        initView();
        initData();
    }

    //初始化界面
    protected void initView(){

        tvTitle.setText("订单详情");
    }

    //初始化数据
    protected void initData(){

        ivReturn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

                finish();
            }
        });

        btnApplyRefund.setOnClickListener(this);
    }

    //点击时间的实现

    @Override
    public void onClick(View view) {
         switch (view.getId()){

             case R.id.btn_apply_refund:

                 intent = new Intent(this,ApplyRefundActivity.class);
                 startActivity(intent);
                 break;
         }
    }
}
